{% extends "finance/base.html" %} {% load static %} {% load custom_filters %} {% block content %}

JV Approval

{% if search_ref %} Reset {% endif %}
{% if journal_header %} {# === JOURNAL SENDIRI === #} {% if journal_header.entryby == request.user.username %} Created by You {% else %} {# ===== APPROVE ===== #} {% if journal_header and not journal_header.approved and not journal_header.void %}
{% csrf_token %}
{% endif %} {# ===== UNPOST ===== #} {% if journal_header.approved and journal_header.posted and not journal_header.void %}
{% csrf_token %}
{% endif %} {# ===== VOID ===== #} {% if not journal_header.approved and not journal_header.posted and not journal_header.void %}
{% csrf_token %}
{% endif %} {% endif %} {# ===== STATUS BADGE ===== #} {% if journal_header.void %} VOID {% elif journal_header.approved %} APPROVED {% endif %} {% endif %} {% if last_ref %} PDF {% endif %}
{% if journal_header %}
Ref No : {{ journal_header.ref_no|format_ref_no }}
Currency : {{ journal_header.currsign }}
Reverse :
Date : {{ journal_header.date|date:"d-m-Y" }}
Rate : {{ journal_header.rate|format_currency_dynamic:journal_header.currsign }}
Entry By : {{ journal_header.entryby }}
Status : {% if journal_header.void %} VOID {% elif journal_header.approved %} APPROVED {% else %} NOT APPROVED {% endif %}
{% endif %}
{% for j in journal %} {% empty %} {% endfor %}
No Account CC No AFE No Description Vendor Contract No Invoice No Org Amt USD Amt
{{ forloop.counter }}
{{ j.acct_no|format_acct_no }}
{{ j.acct_name }}
{% if j.cc_no %} {{ j.cc_no_id }}
{{ j.cc_no.cc_name }} {% else %} - {% endif %}
{% if j.afeno %} {{ j.afeno_id }}
{{ j.afeno.afename }} {% else %} - {% endif %}
{{ j.descript }} {{ j.vendorcode|default:"-" }} {{ j.contractno|default:"-" }} {{ j.invno|default:"-" }} {{ j.oriamt|format_currency_dynamic:journal_header.currsign }} {{ j.usdamt|format_currency_dynamic:"USD" }}
No Journal entries found
TOTAL {{ total_ori|format_currency_dynamic:journal_header.currsign }} {{ total_usd|format_currency_dynamic:"USD" }}
{% endblock %}